﻿class related_movie extends MovieClip
{
	public function draw_button(container_movie:MovieClip,image_movie:MovieClip,star_movie:MovieClip,film_name:String,film_length:String,film_star:Number,film_author:String,film_image:String)
	{
		container_movie._visible=true;
		image_movie.loadMovie(film_image);
		container_movie.name_ins.htmlText=film_name;
		container_movie.length_ins.htmlText=film_length;
		container_movie.author_ins.htmlText=film_author;		
		var i=0;
		star_movie.gotoAndPlay(1);
		star_movie.onEnterFrame=function()
		{
			i++;
			if(i==film_star)
			{
				delete star_movie.onEnterFrame;
				star_movie.stop();
			}
		}
	}
	public var square_mc:MovieClip;		
}